package com.aspire.boc.mms.wmf.util.enums;


/**
 * 操作类型
 * @author zhanghao
 *
 */
public enum ActionOwnerType {
    
	FRAMEWORK(1,"访问"), LIST(2, "列表");
	
    private ActionOwnerType(int key, String value) {
    	this.key = (short)key;
        this.value = value;
    }

    private Short key;
    private String value;

    public static ActionOwnerType getByKey(Short key) {
    	
        for (ActionOwnerType item : values()) {
            if (item.key.equals(key))
                return item;
        }
        return null;
    }
    
    public static ActionOwnerType getByValue(String value) {
    	
        for (ActionOwnerType item : values()) {
            if (item.value.equals(value))
                return item;
        }
        return null;
    }

    public String getValue() {

        return this.value;
    }
    
}
